<!-- 引入公共部分 -->
{{extend './layout.html'}}

{{block 'link'}}
<!-- 添加css链接 -->
<link rel="stylesheet" href="/static/admin/css/goodsMenu.css">
{{/block}}

<!-- body代码 -->
{{block 'main'}}
    <!-- 头部导航代码 -->
    {{include './header.html'}}
    <div class="banner">
        <div class="left">
            <!-- 侧边栏 -->
            {{include './aside.html'}}
        </div>
        <div class="right">
            <div class="nav">
                <i class="iconfont shouyebeifen"></i>
                <a href="/admin">首页</a>
                <i class="iconfont zuoyoujiantou"></i>
                <a href="/admin/goods/goodsMenu">商品列表</a>
               
            </div>
            <div class="wrap clearfix">
               <div class="orderShow">
                    <div class="top">
                        <span>商品名称：</span>
                        <input class="searchInput" type="search" onkeypress="inputEnterFun()" placeholder="请输入商品名称">
                        <button class="btn serrchBtn" onclick="searchByUsername()"><i class="iconfont iconfontzhizuobiaozhun023131"></i> 搜索</button>
                    </div>
                    <div class="btns">
                        <button class="btn delsBtn" onclick="openDeleteGoodsAllFun()"><i class="iconfont piliangshanchu1"></i> 批量删除</button>
                        <button class="btn updataBtn"  onclick="reloadFun()"><i class="iconfont shuaxin"></i> 刷新</button>
                        <span>每页显示条数</span>
                        <select name="selectNums" id="selectNums" onchange="chooseSizeFun()">
                            <option value="5">5</option>
                            <option value="10">10</option>
                            <option value="20">20</option>
                            <option value="50">50</option>
                        </select>
                        <span class="dataNums">5</span>
                        <select name="selectNums" style="height:25px;" id="selectFlag" onchange="chooseFlagFun()">
                            <option value="-1">全部</option>
                            <option value="1">已上架</option>
                            <option value="2">已下架</option>
                            <option value="0">未审核</option>
                        </select>
                        
                    </div>
                   <table class="tableOne" >
                    <thead>
                        <tr>
                            <td>
                                <input type="checkbox" id="checkAll"  onclick="checkAllFun()">
                            </td>
                            <td>产品名称</td>
                            <td>价格</td>
                            <td>月销售量(件)</td>
                            <td>审核状态</td>
                            <td>状态</td>
                            <td>操作</td>
                        </tr>
                    </thead>
                    <tbody class="tbodyMenu">
                        <tr>
                            <td>
                                <input type="checkbox" class="checkbox" onclick="checkAllFun()">
                            </td>
                            <td>产品名称</td>
                            <td>加个</td>
                            <td>库存</td>
                            <td>月销售量</td>
                            <td>审核状态</td>
                            <td>状态</td>
                            <td>
                                <button class="btn useBtn">
                                    <i class=" iconfont htmal5icon22"></i>
                                </button>
                                
                                <a href="/admin/trade/orderMenuDetail">
                                    <button class="btn editBtn">
                                        <i class="iconfont bianji"></i>
                                    </button>
                                </a>
                                <button class="btn delBtn">
                                    <i class="iconfont shanchu"></i>
                                </button>
                            </td>
                        </tr>
                    </tbody>
                    </table>
                <div class="paging">
                    <span class="pageMessage">第1到5条记录，共5条</span>
                    <button class="prev"  onclick="prevFun()">上一页</button>
                    <div class="pages">
                    </div>
                    <button class="next"  onclick="nextFun()">下一页</button>
                    <span>第</span>
                    <input class="searchByPage" type="number" min="1" value="1">
                    <span>页</span>
                    <button onclick="changePageFun()">跳转</button>
                </div>
               </div>
            </div>
            <div class="reasonWin">
                <div class="reasonTop">
                    <span>下架商品</span>
                    <i class="iconfont shibai" onclick="closeFunUser()"></i >
                </div>
                <span class="rafusalReason">请说明下架该商品的理由，以便下次在申请时做好准备。</sp>
                 <textarea name="desc" placeholder="请输入下架理由" class="reasonWrap"></textarea>
                 <div class="reasonBtns">
                     <button class="btn updataBtn" id="passBtn" onclick="undercarriageGoodsFun()">确认</button>
                     <button class="btn delsBtn" id="refuseBtn" onclick="closeFunUser()">取消</button>
                 </div>
            </div>
        </div>
        <!-- 底部信息 -->
        {{include './footer.html'}}
        <div class="covers" onclick="closeFunUser()"></div>
    </div>
    {{include './tools.html'}}
{{/block}}
{{block 'script'}}
<!-- 添加js代码 -->
<script src="/static/admin/js/goodsMenu.js"></script>
{{/block }}
